import request from '@/utils/request'

// 查询仪器维修列表
export function listRepairedDevice(query) {
  return request({
    url: '/labdata/repairedDevice/list',
    method: 'get',
    params: query
  })
}

// 查询仪器维修详细
export function getRepairedDevice(instanceId) {
  return request({
    url: '/labdata/repairedDevice/' + instanceId,
    method: 'get'
  })
}

// 新增仪器维修
export function addRepairedDevice(data) {
  return request({
    url: '/labdata/repairedDevice',
    method: 'post',
    data: data
  })
}

// 修改仪器维修
export function updateRepairedDevice(data) {
  return request({
    url: '/labdata/repairedDevice',
    method: 'put',
    data: data
  })
}

// 删除仪器维修
export function delRepairedDevice(instanceId) {
  return request({
    url: '/labdata/repairedDevice/' + instanceId,
    method: 'delete'
  })
}

// 导出仪器维修
export function exportRepairedDevice(query) {
  return request({
    url: '/labdata/repairedDevice/export',
    method: 'get',
    params: query
  })
}